Skip to content

Fix error: illegal arithmetic on a pointer to void in binary '+'#5

Open
pointhi wants to merge 1 commit intoantirez:masterfrom
pointhi:master
Open

Fix error: illegal arithmetic on a pointer to void in binary '+'#5
pointhi wants to merge 1 commit intoantirez:masterfrom
pointhi:master

Conversation

@pointhi
Copy link
Contributor

@pointhi pointhi commented Oct 5, 2018

It is not allowed to do arithmentic on void pointers. Although it is possible
on some compilers, this is no official C-behaviour because void is an incomplete
object type:

See: https://stackoverflow.com/questions/3523145/pointer-arithmetic-for-void-pointer-in-c

It is not allowed to do arithmentic on void pointers. Although it is possible
on some compilers, this is no official C-behaviour because void is an incomplete
object type:

* https://stackoverflow.com/questions/3523145/pointer-arithmetic-for-void-pointer-in-c
pointhi added a commit to pointhi/benchmarks that referenced this pull request Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant